<?php
use app\common\model\Category;
?>
{layout name="layout/layout" /}
{:widget('Menu/index',['category_id'=>$category_id])}
<div class="king-content-wrap">
    <div class="king-layout1-content" style="margin-top: 0;">
        <ol class="breadcrumb">
            <li><span>内容管理</span></li>
            <li><span><?php echo Category::get($category_id)['title']; ?></span></li>
        </ol>
        <div class="panel panel-default m20">
            <div class="panel-body">
                <form action="{:Url('Video/add')}" method="post" id="form">
                    <div class="form-group label_list top20">
                        <label class="label_name">标题</label>
                        <input class="form-control" type="text" name="title" />
                    </div>
                    <div class="form-group label_list top20">
                        <label class="label_name">封面图</label>
                        <div class="label_img ">
                            {:widget('Upload/image')}
                        </div>
                    </div>
                    <div class="form-group label_list top20">
                        <label class="label_name">简介</label>
                        <input class="form-control" type="text" name="description" />
                    </div>
                    <div class="form-group label_list top20">
                        <label class="label_name">视频地址</label>
                        <input class="form-control" type="text" name="src" />
                    </div>

                    <div class="form-group label_list top40">
                        <input type="submit" class="bos_button" value="保存" />
                    </div>
                    <input type="hidden" name="type" value="2" />
                    <input type="hidden" name="category_id" value="{$category_id}" />
                </form>
            </div>
        </div>
    </div>
</div>
